<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<%@ include file="/WEB-INF/jsp/common/meta.jsp"%>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>用户登录日志</title>
</head>
<body>
<div class="easyui-layout" fit=true>
    <div data-options="region:'center',title:'用户登录日志',border:false" style="padding: 0px;">
        <table singleSelect=true fit=true id="SysUserLoginLog_datagrid"
               fitColumns=true rownumbers="true" toolbar="#SysUserLoginLog_toolbar" pagination="true"
               pageSize="${defaultPageSize}" pageList="${defaultPageList}"
               data-options="url:'${ctx}/sys/sysUserLoginLog/list'">
            <thead>
            <tr>
                <th data-options="field:'accountId',hidden:true,width:150">账号ID</th>
                <th data-options="field:'sysAccount.loginName',width:150">登录名</th>
                <!-- <th data-options="field:'sysAccount.sysUser.userName',width:150,formatter:HgUtil.userInfoDetail('SysUserLoginLogDatagrid.reload','sysAccount.userId','sysAccount.sysUser.isDelete')">用户名</th>
 -->                <th data-options="field:'loginType',width:150">登录类型</th>
                <th data-options="field:'operCode',width:150">操作编码</th>
                <th data-options="field:'operName',width:150">中文操作名称</th>
                <th data-options="field:'engName',width:150">英文操作名称</th>
                <th data-options="field:'operIp',width:150">调用方IP</th>
                <th data-options="field:'reqUri',width:150">请求URI</th>
                <th data-options="field:'reqType',width:150,formatter:HgUtil.fieldFormatterFunc('requestType')" align="center">请求类型</th>
                <th data-options="field:'reqMethod',width:150" align="center">请求方式</th>
                <th data-options="field:'browserType',width:150">浏览器类型</th>
                <th data-options="field:'reqUserAgent',width:150">请求User-Agent</th>
                <th data-options="field:'operRes',width:150,formatter:HgUtil.fieldFormatterFunc('LOG_RESULT')" align="center">操作结果</th>
                <th data-options="field:'exceptionName',width:150">异常</th>
                <th data-options="field:'isAccumulateLoginTimes',width:150,formatter:HgUtil.fieldFormatterFunc('trueOrFalse')" align="center">未认证</th>
                <th data-options="field:'content',width:150">日志内容</th>
                <th data-options="field:'loginLocation',width:150">登录地点</th>
                <th data-options="field:'crtTime',width:150,formatter:HgUtil.formatToDateTime">操作时间</th>
            </tr>
            </thead>
        </table>
        <div id="SysUserLoginLog_toolbar" tag=listen_hotkey>
            <!-- <table>
                <tr>
                    <td><a class="easyui-linkbutton" iconCls="icon_clear" plain="true" tag="clear">清空查询</a></td>
                </tr>
            </table> -->
            <div class="hgGridSearchBar"
				style="height: 50px; width: 100%;display:block;" tag="queryDiv">
				<form id="SysUserLoginLogSearchForm">
					<table width="100%">
						<tr>
							<!-- <td align="right"><span>用户名：</span></td>
							<td><input name="userName" style="width: 100px;"/></td> -->
							<td align="right"><span>登录名：</span></td>
							<td><input name="loginName" style="width: 100px;"/></td>
							<td align="right"><span>登录类型：</span></td>
	                        <td>
	                        	<input class="easyui-combobox" id="loginType"  name="loginType" style="width: 100px;">
	                        </td>
							<!-- <td align="right"><span>操作编码：</span></td>
	                        <td><input name="operCode" style="width: 100px;"/></td>
	                        <td align="right"><span>操作名称：</span></td>
	                        <td><input name="operName" style="width: 100px;"/></td> -->
	                        <td align="right"><span>URI：</span></td>
	                        <td><input name="reqUri" style="width: 100px;"/></td>
	                        <td align="right"><span>请求类型：</span></td>
							<td>
								<input class="easyui-combobox" id="reqType"  name="reqType" style="width: 100px;">
							</td>
							<td align="right"><span>请求方式：</span></td>
							<td><input name="reqMethod" style="width: 100px;"></td>
	                        <td width="100px"></td>
	                        <td rowspan="2" style="text-align: right; padding-right: 15px;">
	                            <a class="easyui-linkbutton" iconCls="icon-search" tag="submit">查询</a>
	                            <a class="easyui-linkbutton" iconCls="icon_clear" tag="clear">清空</a>
	                         </td>
						</tr>
						<tr>
						    <td align="right"><span>调用IP：</span></td>
	                        <td><input name="operIp" style="width: 100px;"/></td>
							<!-- <td align="right"><span>浏览器类型：</span></td>
							<td><input name="browserType" style="width: 100px;"></td> -->
							<td align="right"><span>操作结果：</span></td>
	                        <td>
	                        	<input class="easyui-combobox" id="operRes"  name="operRes" style="width: 100px;">
	                        </td>
	                        <td align="right"><span>日志内容：</span></td>
	                        <td><input name="content" style="width: 100px;"/></td>
	                        <td align="right"><span>操作时间：</span></td>
							<td>
								<input name="startTime" type="text" style="width: 100px;" class="Wdate" id="startTime" value=""
									onClick="WdatePicker({readOnly:true,dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\'endTime\',{d:0});}'})">
							</td>
							<td align="center">
									---&nbsp;&nbsp;&nbsp;&nbsp;
						    </td>
						    <td>
								<input name="endTime" type="text" style="width: 100px;" class="Wdate" id="endTime" value=""
									onClick="WdatePicker({readOnly:true,dateFmt:'yyyy-MM-dd',minDate:'#F{$dp.$D(\'startTime\',{d:0});}'})">
							</td>
						</tr>
					</table>
				</form>
			</div>
        </div>
    </div>
</div>
<script type="text/javascript" src="${ctx}/static/js/sys/log/sysUserLoginLog_view.js?jsTimer=${jsTimer}"></script>
</body>

</html>